-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aa458c8
commit d34bcc0
Showing
5 changed files
with
34 additions
and
18 deletions.
There are no files selected for viewing
10 changes: 9 additions & 1 deletion
10
src/main/kotlin/com/info/maeumgagym/security/cryption/Decrypt.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
package com.info.maeumgagym.security.cryption | ||
|
||
/** | ||
* Base64로 인코딩된 AES 암호화문을 복호화하는 클래스 | ||
* | ||
* @see Encrypt 암호화 클래스 | ||
* | ||
* @author Daybreak312 | ||
* @since 02-05-2024 | ||
*/ | ||
interface Decrypt { | ||
|
||
fun decrypt(encrypted: ByteArray, key: String): ByteArray | ||
fun decrypt(encrypted: String, key: String): String | ||
} |
10 changes: 9 additions & 1 deletion
10
src/main/kotlin/com/info/maeumgagym/security/cryption/Encrypt.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
package com.info.maeumgagym.security.cryption | ||
|
||
/** | ||
* 평문 문자열을 AES로 암호화 및 Base64로 인코딩해 반환하는 암호화 클래스 | ||
* | ||
* @see Decrypt 복호화 클래스 | ||
* | ||
* @author Daybreak312 | ||
* @since 02-05-2024 | ||
*/ | ||
interface Encrypt { | ||
|
||
fun encrypt(unencrypted: ByteArray, key: String): ByteArray | ||
fun encrypt(unencrypted: String, key: String): String | ||
} |
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
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
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