Help language development. Donate to The Perl Foundation
This package implements part of PKCS 5 which is, according to the wikipedia, a Password-based Encryption Standard. The derivation algorithm PBKDF2 is implemented as a class in this package.
use PKCS5::PBKDF2; my PKCS5::PBKDF2 $p .= new; $spw2 = $p.derive-hex( Buf.new('pencil'.encode), Buf.new( 65, 37, 194, 71, 228, 58, 177, 233, 60, 109, 255, 118), 4096, ); is $spw2, '1d96ee3a529b5a5f9e47c01f229a2cb8a6e15f7d', '4096 iteration hex';
See documentation at
This project is tested with latest Rakudo built on MoarVM implementing Perl v6.c.
Marcel Timmerman (MARTIMM on github)