Hi Marcus,Yes I can do it, but the Cryptogrphy package relies on 
InputEventSensor to generate random seeds in this code:
RandomGenerator class>> unpredictableStringsDo: aBlock "Enumerate sources of 
information from my environment that should be generally hard to guess." | time 
| time := Time millisecondsToRun: [ aBlock value: World imageForm bits 
compressToByteArray ; value: Sensor mousePoint x asString ; value: Sensor 
mousePoint y asString ; value: Time millisecondClockValue asByteArray ; value: 
Date today asString ; value: Time now asString ; value: Display extent 
asString. 100 timesRepeat: [ aBlock value: UUID new ]. #(imagePath 
lastUpdateString systemInformationString shortImageName datedVersion 
lastQuitLogPosition licenseStringTemplate)  collect: [ : each | aBlock value: 
(SmalltalkImage current perform: each) asByteArray ] ]. aBlock  value: time 
asByteArray; "maybe the pointer has moved, hit it again." value: Sensor 
mousePoint asString ; value: Time millisecondClockValue asByteArray

I need to use PBKDF2, is there any alternative (running on Pharo 10) to this 
Cryptography package? 
TIA
CheersDavide


    On Thursday, November 30, 2023 at 12:48:49 PM GMT+1, Marcus Denker 
<marcus.den...@gmail.com> wrote:  
 
 You could add a class InputEventSensor (just a subclass of Object) to make the 
code load
(the package might want to add methods to that class?)

After that it will be easier to see why it relies on low level code like that.

    Marcus

> On 29 Nov 2023, at 16:14, Davide Varvello via Pharo-users 
> <pharo-users@lists.pharo.org> wrote:
> 
> 
> Nobody?
> InputEventSensor is missing in Pharo 10.
> 
> There are also several unheard requests about InputEventSensor on Discord, 
> see attachment.
> 
> Cheers
> Davide
> 
> 
> 
> On Tuesday, November 28, 2023 at 02:43:18 PM GMT+1, Davide Varvello via 
> Pharo-users <pharo-users@lists.pharo.org> wrote: 
> 
> 
> Hi Guys,
> The crypto repo: 
> 
> Metacello new 
>  baseline: 'Cryptography'; 
>  repository: 'github://pharo-contributions/Cryptography'; 
>  load:'core'. 
> is not loading due to a dependency on InputEventSensor, can you help me 
> please?
> 
> TIA
> Davide
> <SCR-20231129-oguq.png>

  

Reply via email to