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
  • /
  • test
  • /
  • test.txt
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:c6d8d50ba9d4e5b99bde580f0437fbd9a72a7286
directory badge Iframe embedding
swh:1:dir:9d3d2fc11c433f12dbd75e630c1c0f336bcf87e9
test.txt
#!/bin/sh

test=./test.txt

cat $0 >$test;

for i in rc4 des-cfb des-ofb des-ecb des-cbc des-ede des-ede3 \
	des-cbc-ede des-cbc-ede3 idea-ecb idea-cfb idea-ofb idea-cbc 
do
	echo $i
	../apps/ssleay $i -e -k test < $test > $test.$i.cipher
	../apps/ssleay $i -d -k test < $test.$i.cipher >$test.$i.clear
	cmp $test $test.$i.clear
	if [ $? != 0 ]
	then
		exit 1
	else
		/bin/rm $test.$i.cipher $test.$i.clear
	fi

	echo $i base64
	../apps/ssleay $i -a -e -k test < $test > $test.$i.cipher
	../apps/ssleay $i -a -d -k test < $test.$i.cipher >$test.$i.clear
	cmp $test $test.$i.clear
	if [ $? != 0 ]
	then
		exit 1
	else
		/bin/rm $test.$i.cipher $test.$i.clear
	fi
done

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

back to top