This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: citw-3.0 | |
recipe: drupal8 | |
config: | |
via: apache:2.4 | |
database: mariadb | |
drush: ^10 | |
drupal: true | |
xdebug: false | |
php: '7.4' | |
webroot: drupal/web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function encryptData($data) { | |
$plainText = json_encode($data); | |
$bytesToBeEncrypted = $plainText; | |
$passwordBytes = utf8_encode("p@SSword"); | |
$passwordBytes = hash('sha256', $passwordBytes, true); | |
$saltBytes = array(1,2,3,4,5,6,7,8); | |
$saltBytesstring = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace Mhk.Mp.Beneficiary.TokenCodeForClients | |
{ | |
public class CipherService | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function encryptData($data) { | |
$plainText = json_encode($data); | |
print '$Plaintext = json_encode($data)' . " \nVAL:$plainText \n \n"; | |
$encryptionKey = 'p@SSword'; | |
print "\$encryptionKey = 'p@SSword' \nVAL:$encryptionKey \n \n"; | |
$bytesToBeEncrypted = utf8_encode($plainText); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function encryptData($data) { | |
$plainText = json_encode($data); | |
print '$Plaintext = json_encode($data)' . " \nVAL:$plainText \n \n"; | |
$encryptionKey = 'p@SSword'; | |
print "\$encryptionKey = 'p@SSword' \nVAL:$encryptionKey \n \n"; | |
$bytesToBeEncrypted = $plainText; |