ff-decoder 1.0.0__tar.gz → 1.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ff-decoder
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: Decode Free Fire encrypted payloads (hex/base64) with automatic decryption and expansion.
5
5
  Author: UNKNOWN666
6
6
  Author-email: arbasbilal25@gmail.com
@@ -14,20 +14,27 @@ def main():
14
14
  parser.add_argument("--no-decrypt", action="store_true", help="Do not attempt outer decryption (use raw data)")
15
15
  args = parser.parse_args()
16
16
 
17
- # Read input
17
+ # Determine input source
18
18
  if args.file:
19
+ # Read from file
19
20
  try:
20
21
  with open(args.file, 'r', encoding='utf-8') as f:
21
22
  raw_input = f.read().strip()
22
23
  except Exception as e:
23
24
  print(f"Error reading file: {e}", file=sys.stderr)
24
25
  sys.exit(1)
25
- else:
26
- # If no file, read from stdin (allowing interactive paste)
26
+ elif not sys.stdin.isatty():
27
+ # There is piped input (stdin is not a terminal)
27
28
  raw_input = sys.stdin.read().strip()
28
29
  if not raw_input:
29
- # No piped input, prompt user
30
- raw_input = input("Paste hex or base64 payload: ").strip()
30
+ print("No input provided via pipe.", file=sys.stderr)
31
+ sys.exit(1)
32
+ else:
33
+ # Interactive mode: prompt user
34
+ raw_input = input("Paste hex or base64 payload: ").strip()
35
+ if not raw_input:
36
+ print("No input provided.", file=sys.stderr)
37
+ sys.exit(1)
31
38
 
32
39
  try:
33
40
  messages = decode_payload(raw_input)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ff-decoder
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: Decode Free Fire encrypted payloads (hex/base64) with automatic decryption and expansion.
5
5
  Author: UNKNOWN666
6
6
  Author-email: arbasbilal25@gmail.com
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="ff-decoder",
8
- version="1.0.0",
8
+ version="1.0.1",
9
9
  author="UNKNOWN666",
10
10
  author_email="arbasbilal25@gmail.com",
11
11
  description="Decode Free Fire encrypted payloads (hex/base64) with automatic decryption and expansion.",
File without changes
File without changes