mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-17 21:48:02 +00:00
Provide examples how to encode mail address with PHP, decrypt in python, using standard AES for use as local proxy for libravatar image requests
This commit is contained in:
8
encrypted_proxy/test_code/encrypt.php
Normal file
8
encrypted_proxy/test_code/encrypt.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
include 'lib/MyCypher.php';
|
||||
|
||||
$iv = 'asdf';
|
||||
$key = 'Hallo123';
|
||||
$cypher = new MyCypher($iv=$iv, $key=$key);
|
||||
$php_encrypted = $cypher->encrypt('oliver@linux-kernel.at');
|
||||
print($php_encrypted);
|
||||
Reference in New Issue
Block a user