# Type Secure Text 사용법

**URL:** <https://forum.uipath.com/t/type-secure-text/131586>\
**Category:** Korea RPA 개발자를 위한 공간\
**Created:** [July 8, 2019, 7:43am UTC](https://forum.uipath.com/t/type-secure-text/131586 "2019-07-08T07:43:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![swseo](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@swseo](https://forum.uipath.com/u/swseo)\
**Post date:** [July 8, 2019, 7:43am UTC](https://forum.uipath.com/t/type-secure-text/131586/1 "2019-07-08T07:43:23Z")

</div>

Type Secure Text Activity 사용시,  
반드시 Orchestrator Asset 과 연동해야 하나요?  
혹시 작동 잘 되는 샘플 가지고 계시거나 설명 가능하신 분 있으시면 도와주세요.

> [@How to use Type Secure Text](https://forum.uipath.com/t/how-to-use-type-secure-text/13381/7):
>
> A question on Secure String: I get the Windows credential using “Get secure credential” activity and store the password into variable securePasswordStr, Now I want to use it in opening an excel. In Excel Application scope when I put the the variable securePasswordStr in the excel password filed. It gives an error as mismatch between datatype. Now when I put New System.Net.NetworkCredential(string.Empty, password).Password in excel password, it works. My question is: Why the simple securePa…

를 참고로 해보고 있는데,  
String 을 SecureString 타입으로 변환이 잘 안 됩니다.

**1. Get Credential + Type Secure Text**  
잘 됨

**2. Get Password + Assign(new System.Net.NetworkCredential(string.Empty, pwd).Password) + Type Secure Text**  
안 됨 (Assign 과정에서 오류 발생, Expression Editor 에서는 오류 없는 것으로 나타나지만, 밖으로 빠져 나가면 형변환 오류 발생)

감사합니다.

---

<div class="post-metadata">

**Author:** ![WonGi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/wongi/32/176880_2.png) [@WonGi](https://forum.uipath.com/u/WonGi)\
**Post date:** [July 8, 2019, 7:48am UTC](https://forum.uipath.com/t/type-secure-text/131586/2 "2019-07-08T07:48:38Z")

</div>

securestring 타입의 변수를 만드셔서 값을 넣으시면 사용하실수 있습니다.  
assign 액티비티로  
비밀번호 = (new System.Net.NetworkCredential(“”, “1234”)).SecurePassword

1234값에 비밀번호값을 넣으시고 사용해보세요

---

<div class="post-metadata">

**Author:** ![swseo](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@swseo](https://forum.uipath.com/u/swseo)\
**Post date:** [July 8, 2019, 11:27pm UTC](https://forum.uipath.com/t/type-secure-text/131586/3 "2019-07-08T23:27:10Z")

</div>

오~ 잘 되네요. SecurePassword 로 해야 하는 군요. 감사합니다.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [July 11, 2019, 11:27pm UTC](https://forum.uipath.com/t/type-secure-text/131586/4 "2019-07-11T23:27:12Z")

</div>

Closed on July 11, 2019, 11:27pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
