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
... | |
<packaging>war</packaging> | |
... | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-tomcat</artifactId> | |
</dependency> |
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
require 'openssl' | |
# This module provides AES encryption compatible with MySQL AES_ENCRYPT | |
# and AES_DECRYPT functions. | |
module MySQLEncryption | |
# Takes an unencrypted text string, encrypts it with the password, | |
# and encodes the results to a hexadecimal string | |
def self.mysql_encrypt(unencrypted_text, password) | |
encrypt(unencrypted_text, mysql_key(password)) |
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
require 'my_sql_encryption' | |
text = 'Sensitive data' | |
encrypted = MySQLEncryption.mysql_encrypt(text, @password) | |
decrypted = MySQLEncryption.mysql_decrypt(encrypted, @password) | |
log.info("Encrypted: #{encrypted}") | |
log.info("Decrypted: #{decrypted}") | |
expect(decrypted).to eq(text) |
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
# For use with git archive command: | |
# git archive --worktree-attributes --format=zip --output="$(basename "$PWD").zip" HEAD | |
* text=auto eol=lf | |
*.php diff=php | |
.editorconfig export-ignore | |
.gitattributes export-ignore | |
.gitignore export-ignore |
OlderNewer