Home | Trees | Indices | Help |
|
---|
|
smartcard.util package
__author__ = "http://www.gemalto.com"
Copyright 2001-2012 gemalto Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
This file is part of pyscard.
pyscard is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
pyscard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with pyscard; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
PACK = 1
|
|||
HEX = 2
|
|||
UPPERCASE = 4
|
|||
COMMA = 8
|
|||
__dic_GSM_3_38__ =
|
|||
__package__ = None hash(x) |
|
Padds a byte list with a constant byte value (default is x0FF)
|
Returns a list of ASCII bytes from a string.
|
Returns a string representing a list of ASCII bytes.
|
Returns a list of bytes from a byte string bytestring: a byte string >>> toBytes("3B 65 00 00 9C 11 01 01 03") [59, 101, 0, 0, 156, 17, 1, 1, 3] >>> toBytes("3B6500009C11010103") [59, 101, 0, 0, 156, 17, 1, 1, 3] >>> toBytes("3B6500 009C1101 0103") [59, 101, 0, 0, 156, 17, 1, 1, 3] |
Returns a list of bytes from a string using GSM 3.38 conversion table.
|
Returns an hex string representing bytes
|
An alias for HexListToBinString >>> hl2bs([78, 117, 109, 98, 101, 114, 32, 49, 48, 49]) 'Number 101' |
An alias for BinStringToHexList >>> bs2hl("Number 101") [78, 117, 109, 98, 101, 114, 32, 49, 48, 49] |
|
__dic_GSM_3_38__
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Feb 17 16:23:26 2017 | http://epydoc.sourceforge.net |