Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
geocaching
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ccc-ffm
geocaching
Commits
8278c849
Commit
8278c849
authored
10 years ago
by
bongo
Browse files
Options
Downloads
Patches
Plain Diff
added genChipTan string generator
parent
def411b4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
genChipTan.sh
+21
-0
21 additions, 0 deletions
genChipTan.sh
with
21 additions
and
0 deletions
genChipTan.sh
0 → 100755
+
21
−
0
View file @
8278c849
#!/bin/bash
str
=
""
ncoord
=
$(
python
-c
'import codecs; print(codecs.encode(b"N50Gxx.xxxx","hex_codec"))'
|sed
's/^..//'
|
sed
's/.$//'
)
ecoord
=
$(
python
-c
'import codecs; print(codecs.encode(b"E8Gxx.xxxx","hex_codec"))'
|sed
's/^..//'
|
sed
's/.$//'
)
str
=
$str
'00'
# length =auto
str
=
$str
'0'
# bcd=yes
str
=
$str
'4 '
#bytes lang
str
=
$str
'855 '
# mask 8xx x=freitext
str
=
$str
'49552 '
# foobar
str
=
$str
'1'
#cod = ascii
str
=
$str
'b '
#len
str
=
$str$ncoord
str
=
$str
' 1'
#cod = ascii
str
=
$str
'a '
#len
str
=
$str$ecoord
str
=
$str
' 00'
#checks=auto
echo
$str
|
tr
-d
'\s'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment