public class Rot extends Object
Constructor and Description |
---|
Rot() |
Modifier and Type | Method and Description |
---|---|
static String |
decode(String rot,
int offset,
boolean isDecodeNumber)
RotN解码
|
static String |
decode13(String rot)
Rot-13解码,同时解码数字
|
static String |
decode13(String rot,
boolean isDecodeNumber)
Rot-13解码
|
static String |
encode(String message,
int offset,
boolean isEncodeNumber)
RotN编码
|
static String |
encode13(String message)
Rot-13编码,同时编码数字
|
static String |
encode13(String message,
boolean isEncodeNumber)
Rot-13编码
|
public static String encode13(String message)
message
- 被编码的消息public static String encode13(String message, boolean isEncodeNumber)
message
- 被编码的消息isEncodeNumber
- 是否编码数字public static String encode(String message, int offset, boolean isEncodeNumber)
message
- 被编码的消息offset
- 位移,常用位移13isEncodeNumber
- 是否编码数字public static String decode13(String rot)
rot
- 被解码的消息密文public static String decode13(String rot, boolean isDecodeNumber)
rot
- 被解码的消息密文isDecodeNumber
- 是否解码数字Copyright © 2024. All rights reserved.