Skip to content

"id-aes128-wrap" cipher method fails #1

@impro-vi

Description

@impro-vi

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions