티스토리 뷰

반응형

VB6.0에서

Base64로 인코딩, 디코딩 할 수

있는 라이브러리 이다.

VB자체에서 Base64 코드를 이용해서

인코딩을 할 수도 있으나

DLL을 참조해서 사용하는 것이

개발시간과 실행시간 둘다 효율성이 높을 것 같다.





출처는

http://www.sevillaonline.com/ActiveX/Base64.htm

이며,
해당 파일은


이다.

아래는 사이트에서 발췌한 인코딩, 디코딩 함수들에 대한 설명이다.

Methods:

  • Encode (strDatos As String) As String. Encodes data passed in strDatos and returns the result in a String var.
  • EncodeArr (arrDatos() As Byte) As String. Encodes data passed in the array Datos and returns the result in a String var.
  • EncodeArrArr (arrDatos() As Byte). This method will take data to encode from arrData() and will return the encoded data in the same array. It's the fastest one.
  • EncodeFromFile (strPath As String) As String. Encodes the file specified in strPath and returns the result in a String var.
  • Decode (strDatos As String) As String. Decodes data passed in strDatos and returns the result in a String var.
  • DecodeArr (strDatos As String). Decodes data passed in strDatos and returns the result in an array.
  • DecodeArrArr (arrDatos() As Byte). This method will take data to decode in arrDatos() and will return the decoded data in the same array. It's the fastest one.
  • DecodeToFile (strDatos As String, strPath as String). Decodes data passed in strDatos and saves the result to the file given in strPath. If another file exists with the same name, it will try to overwrite it.





얼굴도 모르는 사람들에게 유용한 데이터를 사용하게 해 준 개발자에게 감사하며...








블로그코리아에 블UP하기
반응형
댓글
반응형
05-17 05:57
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함