Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by RudinUnity · Nov 13, 2013 at 08:22 AM · reflectionwindows store appsecuritycs0246

[Win app] CS0246 & CS0234 :BindingFlags and Cryptography

I want to implant an Android game app to Win store app. It is ok when running game on unity. But there are errors when I build and run its solution:

CS0234: The type or namespace name 'System.Security' does not exist in the namespace 'Cryptography' (are you missing an assembly reference?)

CS0246: The type or namespace name 'BindingFlags' could not be found (are you missing a using directive or an assembly reference?)

Here are the codes where CS0243 happen:

 using UnityEngine;
 using System.Collections;
 using System.Security.Cryptography; //CS0243
 using System.Text;
 
 

CS0246 is(this is class Ani.Mate for animation):

 static BindingFlags bFlags = BindingFlags.Public | BindingFlags.NonPublic |
             BindingFlags.Instance | BindingFlags.Static;


I don't know why it happens? They are built-in classes. Did I miss any reference? If

My MonoDevelop version is 2.8.2. Unity version is 4.2.2.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by RudinUnity · Dec 02, 2013 at 03:17 AM

It seems that no such classes can be used in win8 store app even if they can be search in the web of msdn under win store app api. So I will closed this question with this answer or anyone can give me other advises?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by unimechanic · Dec 10, 2013 at 06:39 PM

Regarding Cryptography classes, at the moment you can use open source libraries that can be found around in Internet, i.e. this one is for MD5 and it's working with WP8 and WSA:

http://farazmahmood.wordpress.com/projects/md5-implementation-in-c/

And the whole reflection API changed with WSA:

http://blogs.msdn.com/b/dotnet/archive/2012/08/28/evolving-the-reflection-api.aspx

Specifically see section titled "Writing code for the new reflection API – Windows Store and Portable Class Library".

EDIT: Here is an example to calculate MD5 in WSA: http://forum.unity3d.com/threads/221534

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image RudinUnity · Dec 27, 2013 at 09:56 AM 0
Share

Thanks for your reply. Because I use the basic $$anonymous$$D5 control, I found a built-in method Windows.Crypto.Compute$$anonymous$$D5Hash in Unity for Windows store app to replace the basic functionality of System.Security.Cryptography.$$anonymous$$D5CryptoServiceProvider.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

usage of FieldInfo.SetValue with SerializeField 2 Answers

Modify private set properties. 1 Answer

Security Sandbox on the webplayer 3.0 1 Answer

Trouble with fieldInfo.SetValue() and arrays 1 Answer

Lightmap textures appearing where they shouldn't in build. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges