Skip to main content
  • Home
  • login
  • Browse the archive

    swh mirror partner logo
swh logo
SoftwareHeritage
Software
Heritage
Mirror
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • c7b1687
  • /
  • perl
  • /
  • f.pl
Raw File
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:a25593186459f5e819180ff7a6e711637d215a68
directory badge Iframe embedding
swh:1:dir:6fe9f7ebaafee609a988be3a56ecc53319a65256
f.pl
#!/usr/bin/perl

use ExtUtils::testlib;

use SSLeay;

$data=<>;

#$b=SSLeay::BN::hex2bn($a);
#$data=$b->bn2bin;

#substr($data,0,8)="";
#print $data;

$md=SSLeay::MD::new("md5");
$md->init();
$md->update("test");
$key=$md->final();

$rc4=SSLeay::Cipher::new("rc4");
$rc4->init($key,"",1);
$out=$rc4->cipher($data);

print $out;

ENEA — Copyright (C), ENEA. License: GNU AGPLv3+.
Legal notes  ::  JavaScript license information ::  Web API

back to top