-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Same for these cipher methods too:
'id-aes128-wrap' => 'id-aes128-wrap',
'id-aes128-wrap-pad' => 'id-aes128-wrap-pad',
'id-aes192-wrap' => 'id-aes192-wrap',
'id-aes192-wrap-pad' => 'id-aes192-wrap-pad',
'id-aes256-wrap' => 'id-aes256-wrap',
'id-aes256-wrap-pad' => 'id-aes256-wrap-pad',
'id-smime-alg-CMS3DESwrap' => 'id-smime-alg-CMS3DESwrap',
Code sample:
//get all Algorithm
$list = Cryptographers::getCipherMethods();
Cryptographers::setChipper('id-aes128-wrap');
//Encode:
$encoded = Cryptographers::encrypt("Hello World");
//Decode:
$decoded = Cryptographers::decrypt($encoded);
echo $encoded.PHP_EOL;
echo $decoded.PHP_EOL;
//Output:
//bMhFJ86i3GckUaoq.FTAdoRaUOrs79Rs=
//Hello World
//Get Random Salt
Cryptographers::getRandomByte();
Metadata
Metadata
Assignees
Labels
No labels